package com.dehong.service.impl;

import com.dehong.model.ContractC;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.dehong.mapper.FactoryCMapper;
import com.dehong.model.FactoryC;
import com.dehong.service.FactoryCService;

import java.util.List;

@Service
public class FactoryCServiceImpl implements FactoryCService{

    @Resource
    private FactoryCMapper factoryCMapper;

    @Override
    public int deleteByPrimaryKey(String factoryId) {
        return factoryCMapper.deleteByPrimaryKey(factoryId);
    }

    @Override
    public int insert(FactoryC record) {
        return factoryCMapper.insert(record);
    }

    @Override
    public int insertSelective(FactoryC record) {
        return factoryCMapper.insertSelective(record);
    }

    @Override
    public FactoryC selectByPrimaryKey(String factoryId) {
        return factoryCMapper.selectByPrimaryKey(factoryId);
    }

    @Override
    public int updateByPrimaryKeySelective(FactoryC record) {
        return factoryCMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FactoryC record) {
        return factoryCMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<FactoryC> selectfactory() {
        return factoryCMapper.selectfactory();
    }



}
